#include <xp/bas/stdio.h>
#include <xp/bas/stdlib.h>

int xp_main()
{
	xp_char_t buf[128];

	xp_longtostr (22319l, 10, buf);
	xp_printf (XP_T("[%s]\n"), buf);

	xp_longtostr (0x12ABCE9l, 16, buf);
	xp_printf (XP_T("[%s]\n"), buf);

	xp_longtostr (0x12ABCEFl, 16, buf);
	xp_printf (XP_T("[%s]\n"), buf);

	xp_longtostr (0x0800, 2, buf);
	xp_printf (XP_T("[%s]\n"), buf);

	xp_longtostr (12, 2, buf);
	xp_printf (XP_T("[%s]\n"), buf);

	return 0;
}
